<?php
namespace Home\Controller;
use Think\Controller;
class IndexController extends Controller {
		public function index(){
		  /*
        $ch = curl_init();
		$url = 'http://apis.baidu.com/apistore/stockservice/stock?stockid=sh600000';
		$header = array(
			'apikey:28b971b67a1bff7c1ad492e6604b0f46',
		);
		// 添加apikey到header
		curl_setopt($ch, CURLOPT_HTTPHEADER  , $header);
		curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
		// 执行HTTP请求
		curl_setopt($ch , CURLOPT_URL , $url);
		$res = curl_exec($ch);

		dump(json_decode($res));
		
		$str="000001";
		
		echo "$str";
		$str=str_pad($str+1,6,0,STR_PAD_LEFT);
		
		echo "</br>$str";
				$str=str_pad($str+1,6,0,STR_PAD_LEFT);
		
		echo "</br>$str";
		import("Home.Library.tools");
		$classname = 'tools';
		$deCode=$classname::reCode("008183");
		
		echo "$deCode";
		$reCode=$classname::deCode($deCode);
		echo "$reCode";
		*/
	   $this->display("/Init/index");
	   }
}